<?php
require(dirname(__FILE__)."/includes/init.php");

//require(dirname(__FILE__)."/includes/cls_template.php");
$update = isset($_REQUEST['update'])?$_REQUEST['update']:'';
//$db = new mysqls("ab");

//$update = "ZnJlZXdheTE1OThAZ21haWwuY29tfDE2fDEzNzU3NzQ3Njl8TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgNS4xKSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMjguMC4xNTAwLjcxIFNhZmFyaS81MzcuMzZ8MTI3LjAuMC4x";
if(!empty($update)){
    $param = base64_decode($update);
    $param = urldecode($param);
    $paramArr = explode("|", $param);
}else{
    $paramArr = array('0','0','0','0','0','0');
}

//Array ( 
//  [0] => freeway1598@gmail.com 
//  [1] => 16 
//  [2] => 1375774769 
//  [3] => Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 
//  [4] => 127.0.0.1 )

?>
<html>
<head>
<title>20130802163813</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#3c3c3c" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style=" height:100%; width:100%">
<script src="js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
    $("#emailId").focus(function(){
        var emailId = $(this).val();
        if(emailId=="Your Email"){
            $(this).val("");
        }
        if(emailId=="Email is invalid!"){
            $(this).val("");
        }
    })
    $("#emailId").blur(function(){
        var emailId = $(this).val();
        if(emailId == ""){
            $(this).val("Your Email");
        }else{
            var search_str = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/;
            if(!search_str.test(emailId)){
                $(this).val("Email is invalid!");
            }
        }
    })
    
    $("#nameId").focus(function(){
        var nameId = $(this).val();
        if(nameId=="Your Name"){
            $(this).val("");
        }
    })
    $("#nameId").blur(function(){
        var nameId = $(this).val();
        if(nameId==""){
            $(this).val("Your Name");
        }
    })

})

</script>
<div style=" margin:0 auto; background:#3c3c3c; height:100%" align="center">
<form action="procedure.php" method="post">
<table id="__01" width="883" height="618" border="0" cellpadding="0" cellspacing="0" bgcolor="#3c3c3c">
    <tr>
        <td rowspan="11" height="618" width="221">&nbsp;
        </td>
        <td colspan="3">
            <img src="http://farm4.staticflickr.com/3665/9436964348_9733beac14_o.jpg" width="445" height="113" alt=""></td>
        <td rowspan="11" height="618" width="217">&nbsp;
        </td>
    </tr>
    <tr>
        <td rowspan="8">
            <img src="http://farm6.staticflickr.com/5545/9433214487_fb5c082039_o.jpg" width="24" height="426" alt=""></td>
        <td>
            <img src="http://farm8.staticflickr.com/7337/9433214571_2eb97fa86e_o.jpg" width="395" height="27" alt=""></td>
        <td rowspan="8">
            <img src="http://farm8.staticflickr.com/7423/9435990430_79b36763fd_o.jpg" width="26" height="426" alt=""></td>
    </tr>
    <tr bgcolor="#fbfbfb">
        <td height="85"><img src="http://farm8.staticflickr.com/7435/9436964864_3f27c7afd6_o.jpg" width="395" height="85" alt=""></td>
    </tr>
    <tr bgcolor="#e6e6e6">
        <td height="65" background="http://farm8.staticflickr.com/7349/9433214911_50cc5824a8_o.jpg"><label>
          <div align="center">
            <input name="nowEmail" type="text" size="40" maxlength="45" style=" font-weight:bold; font-family: Helvetica,Arial,sans-serif;color:#b6b6b6; margin-right: 2px; height: 30px; border: 0px none;width: 295px;margin-bottom: -2px;" id="emailId" value="Your Email">
          </div>
        </label></td>
    </tr>
    <tr>
        <td height="59" background="http://farm4.staticflickr.com/3683/9436964492_73452d8e61_o.jpg">
            <div align="center">
            <input name="name" id="nameId" type="text" size="40" maxlength="45"style="font-weight: bold; font-family: Helvetica,Arial,sans-serif; color: rgb(182, 182, 182); border: 0px none; width: 295px; margin-right: 2px; margin-bottom: 2px; height: 30px;" value="Your Name">
          </div></td>
    </tr>
    <tr>
        <td>
            <img src="http://farm4.staticflickr.com/3672/9434187309_8d32fb9bb2_o.jpg" width="395" height="54" alt=""></td>
    </tr>
    <tr>
        <td>
            <input type="submit" style="background:url(http://farm3.staticflickr.com/2875/9436964758_6eba529a3d_o.jpg); width:395px; height:73px; border:0px; cursor:pointer!important;cursor:hand" value=""></td>
    </tr>
    <tr>
        <td height="27" width="395" style="background:#DDDDDD"><div align="center" style="color: #515151; font-size:14px">By click the Button,i agree to Terms &amp; Conditions. 
            </div></td>
    </tr>
    <tr>
        <td>
            <img src="http://farm8.staticflickr.com/7388/9433215117_5c7518ef41_o.jpg" width="395" height="36" alt=""></td>
    </tr>
    <tr>
        <td colspan="3" width="445" height="45"></td>
    </tr>
    <tr>
        <input type="hidden" name="preEmail" value=<?php echo "'".$paramArr['0']."'"; ?>/>
        <input type="hidden" name="emailId" value=<?php echo "'".$paramArr['1']."'"; ?>/>
        <input type="hidden" name="timeStamp" value=<?php echo "'".$paramArr['2']."'"; ?>/>
        <input type="hidden" name="userBrowser" value=<?php echo "'".$paramArr['3']."'"; ?>/>
        <input type="hidden" name="ip" value=<?php echo "'".$paramArr['4']."'"; ?>/>
        <input type="hidden" name="action" value= "updateEmail" />
        <td colspan="3" height="34" width="445"><div align="center" style="color: #888888">@2000-2013 HairExtensionKingdom.All rights reserved. </div></td>
    </tr>
</table>
</form>
</div>
<!-- End ImageReady Slices -->
</body>
</html>